package com.tupu.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @TableName tb_standardization_point
 */
@Data
public class StandardizationPointDTO implements Serializable {
    /**
     *
     */
    private Integer problemId;
    /**
     * 厂站
     */
    private String station;
    /**
     *
     */
    private Integer stationNo;
    /**
     * 设备类型
     */
    private String deviceType;
    private String messageType;

    /**
     * 设备类型编码
     */
    private String deviceTypeCode;

    /**
     * 点名
     */
    private String pointName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime recordTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    private static final long serialVersionUID = 1L;

    /**
     * 设备名称规范表主键id
     */
    private Integer standardId;

    /**
     * 是否训练（0代表取消训练，1代表训练）
     */
    private Integer isTrain;

    /**
     * 训练时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime trainTime;

    private String standardName;

    private String standardDesc;
}